import pandas as pd
# import caas_jupyter_tools

# 当前已知条件
basic_pension = 148  # 基础养老金（信阳）
years = 15           # 缴费年限
divisor = 139        # 个人账户余额除数

# 河南城乡居民养老保险常见缴费档次（单位：元/年）
payment_levels = [200, 500, 1000, 1500, 2000, 3000, 4000, 5000]

# 计算养老金
data = []
for level in payment_levels:
    account_balance = level * years  # 简化：不考虑补贴与利息
    monthly_from_balance = account_balance / divisor
    monthly_total = basic_pension + monthly_from_balance
    data.append({
        "缴费档次（元/年）": level,
        "15年缴费总额（元）": account_balance,
        "个人账户养老金（元/月）": round(monthly_from_balance, 2),
        "预计月养老金（元）": round(monthly_total, 2)
    })

print(data)

# df = pd.DataFrame(data)

# caas_jupyter_tools.display_dataframe_to_user(name="城乡居民养老保险缴费档次与养老金对照表", dataframe=df)
